<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ include file="/jsp/common/common_head.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>示界港管理平台</title>
<%@ include file="/jsp/common/common_script.jsp"%>
<style type="text/css">
</style>
<script type="text/javascript">
 var g_userId = '<%=session.getAttribute("userId")%>';
</script>
</head>
<body>
<table class="queryTable" >
	<tr>
		<td class="queryTitle" width="80px">图形名</td>
		<td class="queryContent">
			<input class="inputText" type="text" id="queryGraphName" />
		</td>
		<td class="queryBtnTd">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search"  onclick="doQuery()">查询</a>
		</td>
	</tr>
</table>

<table id="graphGrid"></table>

<div id="editDlg" class="easyui-window" title="" closed="true" style="width:700px; height:auto;text-align:center; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="editGraphForm"  method="POST" enctype="multipart/form-data">
			<s:hidden id="userId" name="graphDto.user_id"></s:hidden>
			<s:hidden id="userType" name="graphDto.user_type"></s:hidden>
			<s:hidden id="graphId" name="graphDto.graph_id"></s:hidden>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="editGraphTable">
				<%-- <tr>
					<td class="queryTitle" style="width:100px;">录入方式</td>
					<td class="queryContent" colspan="3" style="width:550px;">
						<div style="width:80px;float:left"><input type="checkbox" id="inputType" name="inputType" value="0" onclick="onInputTypeClick()"/>批量录入</div>
					</td>
				</tr>
				<tr>
					<td class="queryTitle" style="width:100px;">图形名称</td>
					<td class="queryContent" style="width:300px;">
						<s:textfield id="graphName" name="graphDto.graph_name" cssClass="inputText easyui-validatebox" data-options="" cssStyle="width:250px"/>
					</td>
					<td class="queryTitle" style="width:100px;">图形类别</td>
					<td class="queryContent" style="width:150;">
						<select id="graphType" name="graphDto.graph_type">
				    		<option value=""></option>
							<option value="0">普通</option>
							<option value="1">特殊</option>
						</select>
					</td>
				</tr> --%>
				<tr>	
					<td class="queryTitle" style="width:100px;">图形数据</td>
					<td class="queryContent" colspan="3" style="width:550px;">
						<s:textarea id="graphData" name="graphDto.data" cssClass="inputText easyui-validatebox" rows="10" cssStyle="width:400px"/>
					</td>
				</tr>
			</table>
			<br><span style="text-align:center;color:red">注意: 数据提交前请先进行<b>［图形预览］</b>检查</span>
			<div style="display:none;margin-top:10px" id="showMsg">
				<input type="text" name="msgTxt" id="msgTxt" value="处理完毕！" size="100" readonly="true" style="border:0px;left:20px;color:green"/>
		    </div>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="dlgBtn">
		<a class="easyui-linkbutton" iconCls="icon-help" href="javascript:void(0)" onclick="chkHelp()">数据检查</a>
		<a class="easyui-linkbutton" id="previewBtn" iconCls="icon-reload" href="javascript:void(0)" onclick="doPreview()">图形预览</a>
		<a class="easyui-linkbutton" id="applyBtn" iconCls="icon-ok" href="javascript:void(0)" onclick="doPostData()">提交</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelPostData()">取消</a>
    </div>
</div>

<script type="text/javascript" src="${ctx }/js/material/graph_info.js"></script>
</body>
</html>
